import request from "@/utils/request";

// 获取列表 计算
export function getAllList(data) {
  return request({
    url: "/houseEconomicDamageAssess/getDirectEconomicLosses",
    method: "post",
    data: data,
  });
}
// 判断是否继续计算
export function getFailureRatioByXsemId(query) {
  return request({
    url: `/houseEconomicDamageAssess/getFailureRatioByXsemId`,
    method: "get",
    params: query,
  });
}
export function getListAll(query) {
  return request({
    url: "/houseEconomicDamageAssess/getDirectPage",
    method: "get",
    params: query,
  });
}
// 获取列表
export function getAllList1(data) {
  return request({
    url: "/houseEconomicDamageAssess/getDisasterAreasHousesDirectEconomicLosses",
    method: "post",
    data: data,
  });
}
// 查看
export function getEvaluationSubArea(id) {
  return request({
    url: "/houseEconomicDamageAssess/getEvaluationSubArea",
    method: "get",
    params:{
    	xsemId:id
    }
  });
}

// 查看
export function getDisasterAreasHousesData(data) {
  return request({
    //url: "/houseEconomicDamageAssess/getDisasterAreasHousesData",
    url: "/houseEconomicDamageAssess/getDisasterAreasHousesDirectEconomicLosses",
    method: "post",
    data: data,
  });
}

// 查看3
export function getAdministrationData(id) {
  return request({
    url: "/houseEconomicDamageAssess/getAdministrationData",
    method: "get",
    params:{
    	xsemId:id
    }
  });
}
// 查看
export function getAreaHousesDirectEconomicLosses(data) {
  return request({
    url: "/houseEconomicDamageAssess/getAdministrationAreaHousesDirectEconomicLosses",
    method: "post",
    data: data,
  });
}